package java51_17;

public class StrTest {

	public static void main(String[] args) {
		String s1 = "I love java";// 常量池
		String s2 = s1.toUpperCase();// 大写
		System.out.println(s2);

		String s3 = s1;
		s1 += " and php";
		System.out.println("s1=" + s1);
		System.out.println("s3=" + s3);
		byte[] b1 = { 65, 66, 67 };
		String s4 = new String(b1);
		System.out.println("s4=" + s4);
	}
}
